package net.roobook.common.annotation;

import net.roobook.common.selector.RoobookCloudApplicationSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;
/**
 * @ desc 多注解功能整合为一个注解
 * @Author Roobook
 * @date 2022/4/8
 * @param
 * @return
 * @EnableRoobookServerProtect，开启微服务防护，避免客户端绕过网关直接请求微服务
 * @EnableRoobookOauth2FeignClient，开启带令牌的Feign请求，避免微服务内部调用出现401异常
 * @EnableRoobookAuthExceptionHandler，认证类型异常翻译
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RoobookCloudApplicationSelector.class)
public @interface RoobookCloudApplication {
}
